You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TRngStream Class > TRngStream Methods > TRngStream.RandomBinomial Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TRngStream.RandomBinomial Method

Generates an array of integer samples distributed Binomially.

Syntax
C#
Visual Basic
public void RandomBinomial([In] TMtxVecInt Dst, [In] int n, [In] double p);

Returns random numbers distributed according to the Binomial probability density function (PDF) as defined here Probabilities.BinomPDF. The number of samples generated is defined with the Dst.Length parameter. The result is an array of integers which can be accessed via Dst.IValues property. Dst is automatically resized to store 32bit integers, if needed.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!